import request from '@/utils/request'


//将标注的药物不良反应事件案例导入
export function startImport(){
  return request({
    url: '/ade/AdeKnowledge/import',
    method: 'put'
  })
}

//对标注结果进行格式化
export function startFormat(){
  return request({
    url: '/ade/AdeKnowledge/format',
    method: 'put'
  })
}


// 查询ADE Knowledge列表
export function listAdeKnowledge(query) {
  return request({
    url: '/ade/AdeKnowledge/list',
    method: 'get',
    params: query
  })
}

// 查询ADE Knowledge详细
export function randomAdeKnowledge(data) {
  return request({
    url: '/ade/AdeKnowledge/random',
    method: 'post',
    data: data
  })
}

// 查询ADE Knowledge详细
export function getAdeKnowledge(id) {
  return request({
    url: '/ade/AdeKnowledge/' + id,
    method: 'get'
  })
}

// 新增ADE Knowledge
export function addAdeKnowledge(data) {
  return request({
    url: '/ade/AdeKnowledge',
    method: 'post',
    data: data
  })
}

// 修改ADE Knowledge
export function updateAdeKnowledge(data) {
  return request({
    url: '/ade/AdeKnowledge',
    method: 'put',
    data: data
  })
}

// 删除ADE Knowledge
export function delAdeKnowledge(id) {
  return request({
    url: '/ade/AdeKnowledge/' + id,
    method: 'delete'
  })
}
